package com.xiaodou.mjf.application.core.service.impl;

import com.xiaodou.mjf.application.core.repository.BankCardCashioRepository;
import com.xiaodou.mjf.application.core.service.BankCardCashioService;
import com.xiaodou.mjf.entity.core.BankCard;
import com.xiaodou.mjf.entity.core.BankCardCashio;
import com.xiaodou.mjf.infrastructure.common.app.JpaSimpleService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.transaction.Transactional;


/***
 *
 * BankCardCashio业务访问实现
 * @author XiaoDou.com Code Generator
 * @version 1.0
 * 2014-10-29 17:37:52
 *
 */
@Service @Transactional
public class BankCardCashioServiceImpl extends JpaSimpleService<BankCardCashio,String> implements BankCardCashioService{

	Logger logger = LoggerFactory.getLogger(BankCardCashioServiceImpl.class);

    @Resource
    BankCardCashioRepository bankCardCashioRepository;

    @Override
    protected JpaRepository<BankCardCashio, String> getRepository() {
        return bankCardCashioRepository;
    }

	@Override
	public BankCardCashio findBycardnumber(String uid, String cardNo, Integer status) {
		  return bankCardCashioRepository.findByCardNumber(uid, cardNo, status);
	}

}

